/*
 * This file (Parameter.java) is protected by the GNU GPL licence (v2). 
 * Please read the license.txt attached for further informations. 
 * 
 */
package org.algoristes.alkwarel.core;

/**
 * 
 * Structure containing the name, type and value of a parameter used in an
 * {@link Tool}.
 * 
 * @author xgouchet
 * 
 */
public class Parameter {

	/** the name of the parameter */
	public String mName;

	/** the type of the parameter */
	public String mType;

	/**
	 * The value of the parameter. This is updated automatically each time the
	 * object containing this parameter is called (either from UI or script
	 * modification).
	 * 
	 */
	public String mValue;

	/**
	 * Standard constructor
	 * 
	 * @param name
	 *            the name of the parameter
	 * @param type
	 *            the type of the parameter
	 */
	public Parameter(String name, String type) {
		this(name, type, "");
	}

	/**
	 * Standard constructor
	 * 
	 * @param name
	 *            the name of the parameter
	 * @param type
	 *            the type of the parameter
	 * @param value
	 *            the value of the paramter
	 */
	public Parameter(String name, String type, String value) {
		mName = name;
		mType = type;
		mValue = value;
	}
}
